﻿using System;
using System.Collections;
using System.Linq;
using PetaPoco;
using Tunynet;
using Tunynet.Caching;
using Tunynet.Common;
using Tunynet.Common.Configuration;
using System.Collections.Generic;

namespace Spacebuilder.Common
{
    /// <summary>
    /// 用户图片
    /// </summary>
    [TableName("spb_UserAlbums")]
    [PrimaryKey("Id", autoIncrement = true)]
    [CacheSetting(true)]
    [Serializable]
    public class UserAlbumr : SerializablePropertiesBase, IEntity
    {
        #region 需要持久化数据

        /// <summary>
        /// 
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        ///UserId
        /// </summary>
        public long UserId { get; set; }

        /// <summary>
        /// 附件图片ID
        /// </summary>
        public string FeaturedImageAttachmentId { get; set; }

        /// <summary>
        /// 图片路径
        /// </summary>
        public string FeaturedImage { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 显示顺序
        /// </summary>
        public int DisplayOrder { get; set; }

        #endregion

        #region IEntity 成员

        object IEntity.EntityId { get { return this.Id; } }

        bool IEntity.IsDeletedInDatabase { get; set; }

        #endregion IEntity 成员
    }
}
